// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

const {ccclass, property} = cc._decorator;

@ccclass
export default class LayerOpen extends cc.Component {

   

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {}

    start () {
       
    }

    protected onEnable(): void {
        this.node.scale = 0.2;
        this.node.runAction(cc.sequence(cc.scaleTo(0.15,1.1).easing(cc.easeIn(2)),cc.scaleTo(0.08,1).easing(cc.easeOut(2))));
    }

    // update (dt) {}
}
